package cn.tedu.baking.service.impl;

import cn.tedu.baking.mapper.LogMapper;
import cn.tedu.baking.pojo.entity.Log;
import cn.tedu.baking.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * 日志的操作接口   实现类
 */
@Service  //Service注解,代表Service
public class LogServiceImpl implements LogService {
    @Autowired
    LogMapper logMapper;
    @Override
    public int insertLog(Log log) { //log信息由控制器层提供
        return logMapper.insert(log); //插入日志
    }
}
